import Vue from 'vue'
import App from './App.vue'
// 导入element-ui
import ElementUI from 'element-ui'
import "element-ui/lib/theme-chalk/index.css"
import { Message } from 'element-ui';
// 导入全局公共样式
import "@/assets/css/global.css"
// 导入封装的Vuex
import store from "@/store/index"
// 导入vue-router
import router from '@/router/index'
// 导入封装的axios
import https from "@/api/requist" 
Vue.use(ElementUI);

Vue.config.productionTip = false
// 挂载在Vue原型中
Vue.prototype.$https = https;
Vue.prototype.$message = Message;

const vm = new Vue({
  render: h => h(App),
  store,
  router,
  beforeCreate(){
  //   this.prototype.$https = https;
     Vue.prototype.$bus = this;
  }
}).$mount('#app')
// vm.prototype.$https = https;
